Classical classes in JavaScript