A js function that adds simple class extensibity to javascript.