extract all global variables to globals.js, explotions to explosions.js.