simple object oriented javascript library