basic javascript oop library.