Allow config file to be .js as well as .json

There are cases where logic might need to be applies, especially for processing URLs, so a .js config files is really needed.

Edited by Aaron Goldenthal