add John Resig's Class extend method

for simple JS inheritance
use Class.extend for classes inherintance