Simple object oriented javascript library