Remove the double slash in the urls of ajax