A simple object oriented framework and mock compiler for javascript