Complete - task : Make AMD compliant (loadable with requireJS)