HTML 5 Game prototype using canvas