Added AMD support with global namespace pollution.
Added support form component.js [#5]