Properly handling Janrain -- from AJAX to page request