initial implementation of namespaced JS