allow .js configuration

Would you be interested in this patch? I kind of like having code for configuration as well, since you can do stuff and just export an object. For instance the configuration might be different depending on which os you are running on, how many cpus you have and things like that.