Update ua-parser.js

Prevents errors (cannot call .toLowerCase() on function) when Objects are extended downstream.