Update `mobileGrade` function to match jQuery Mobile 1.4 standards.

This PR updates the `mobileGrade` function to the standards defined by the newest version of [jQuery Mobile (Version 1.4).](http://jquerymobile.com/gbs/1.4/)