Change order of URLS to make ajax call work again