js object structure and inheritance model described