index.html - moved global vars into global.js