Create mobile.js

Simple functions for html5 web apps. Library independent.