script to load game in index.html