added CommonJS compatibility.
add package.json so that it can be loaded with node.js
add component.json so it can be loaded with bower
fix syntax error
Merge pull request #107 from aq1018/master

Added support for CommonJS Modules and Bower