js update for game