Fix legacy namespace directive, add attributes

There was a bug in the template for `config.js` which was causing the `legacyNamespace` directive to be ignored (wasn't nested in graphite namespace). 

Fixed this, and added a few more attributes.