Class functionality for JavaScript, my way.