Fix prototype inheritance

Prototypes were causing issues as the new browser was using the same
names. This checking should fix that issue.