Migration of project to requirejs and web