create namespaces in javascript