Mobile javascript