Move vars in main.js to separate files

require.js installed and utilized successfully!!!!