Re-adds JavaScript sources and tests

Previously removed as part of the restructure for #85. Test JavaScripts
are required to be committed for TravisCI to work.