dkfun.js for holding game engine