added configuration variable in javascript to be able to change the hostname