Added options to disable restrictions - and a way to render the javascript
Added so the default configuration can be overwriten