A simple javascript snippet for detect mobile browsers.