renamed js-dir to scripts
auto-replacement of api-host based on dev-environment