JavaScript namespace and using library