A simple JavaScript class system.