Reorganized code into individual javascript files
Merge remote-tracking branch 'origin/master'