Utils for JavaScript