Moved all JavaScript into one file.