Simple oo framework and mock compiler for javascript