Class is not defined


I have written a .js file under app under /template/includes/patient.js

After rebuilding, its showing me error

Uncaught ReferenceError: Class is not defined

My code is at:

Please let me know how to extend class in app under template section.


Class is not available in website.js, you will have to build it in your js file