Fix test errors in chrome and firefox.
Fix bug caused by having ids that have the same names as methods on the Object.prototype.