Reduce main.js to script/css loader functions. New CookieManager.js