Update ua-parser.js

Prevents errors (cannot call .toLowerCase() on function) when Objects are extended downstream.
Merge pull request #44 from Benxamin/Typecheck-iteration

Update ua-parser.js