Simple java script class library