Fix wrong url being used in javascript.