Updated gamelayer.js