A simple oo framework and mock compiler for javascript