Javascript library to emulate object oriented classes