move the main app JS into a separate file

create a new JS file for the main game script
pull that JS out of the index.html file