First shot of separating out the JS modules
Small bugfix
Merge pull request #8 from econchick/separate-js

First shot of separating out the Javascript modules