fixed javascript error on android
refactored build process to separate js files
Merge pull request #13 from tyhoff/build-refactor

The javascript committee chairman approves.