Updated oop javascript blog post with method overriding