"use namespaced globals" style for JavaScript lib