sending in ajax with correct url