Fixed bug, added rudimentary javascript files.