fix support for .js config files