classical inheritance with javascript