add config.js to wrap config
updates
Merge pull request #3 from andystanton/modularise

Modularise config.