making config into js instead of json, adding code to make heroku static asset serving work