A class-based javascript library