Added require and refactored JS to use require: add_requirejs
Merge pull request #1 from mattludwigs/add_requirejs

Added require and refactored JS to use require: add_requirejs