...
Compare with built-in question type JS Objects which are located in [applicaton assets folder]/javascript/questions.js.
AMD modules for development
There is a number of framework functions to support coding question types. See this article for the most useful methods.