Moved Profile settings to MVC and removed onpageload.js