Update gamelib.js