Separated js code into it's own filetype and left remaining html code in
its file.