Config.js rewrite DONE! fixes #355

Everything should be working and actually did when I was testing this.