add js for game