Merge pull request #1 from andrew-l-o/require

add requirejs and bower for dependency help
modularized!
code cleanup
Merge pull request #3 from andrew-l-o/modularize

Modularize