fix js load order bug
bug fix in ongoing_game_exists?