javascript inheritance post