router completed but getting url jquery error