Fixed url-problem that caused breaking of code running at localhost