Merged javascript and php config files

php ignores the javascript block and actually generates the javascript
config when included in html.