keep the list of the games in javascript