global variables have been moved to index.html