Added config.js. Also closes #6 and #22.