From http://www.abeautifulsite.net/blog/2011/11/detecting-mobile-devices-with-javascript/
Simple (JS) check of userAgent to determine if this platform is a mobile device