update javascript inheritance simplified