Use passport and normal javascript