Fix PageElement prototype inheritance