change js detect mobile device code