Utils for JavaScript classes