published javascript inheritance