Move the javascript app to its' own file.