Moved JS into it's own file.