Playing around with javascript's oop syntax.