Split the game script from the html page.
Messing around some more. Next up is to add movement to spells.