By following a tutorial I was able to make my first game using javascript.