Adding JS prototypal inheritence