refactor
Finish refactor into separate js files
Merge pull request #42 from spencer48/refactor

Refactor complete