Create NamespacingAndModule pattern in Javascript