Trying out making a battle using javascript. Expect complete noobness!