fixing URL issue with ajax