CB-4910 Support top level location for config.xml
Fix jshint warnings about spaces after function names