requirejs is needed only on browser + improve mobile env