Fixing 'undefined' comparison for typeof

Thanks to @wardpeet and his pull request #286
Adding jQuery 1.9.0