Utilities for JavaScript