Learning namespace and javascript