Fix mobileGrade function for desktop IE.
Merge pull request #295 from bhamodi/fix-a-grade

Fix mobileGrade function for desktop IE.