fixed global namespacing in base.js