JavaScript scope and Inheritance part one