Javascript class framework for Rhino