added inheritance prototypejs script