Ajax request for passport.js