Moved some variables from script.js to settings.js