specify correct ressource url in ajax call