Lightweight namespace utility functions for JavaScript.