Switching the code from my own module design to an AMD desing based on RequireJS

I used to develop classes as modules. I keep this module pattern but
using RequireJS to load on time the modules.