fix prototypal inheritance with Element
update example to use element inheritance