Portable JavaScript library for class-style OOP programming