Create core.js

add javascript file containing game loop and functions like save/load/delete/etc