Internal-use version of JS.Class by James Coglan