Added optional user agent param for the `mobileGrade` function

@serbanghita - Added optional user agent param for the `mobileGrade` function as per issue #316