Simple class system for JavaScript