Started working on modular version
Added interface file
Included RequireJS for AMD
Setup RequireJS
Modularized the code