#193 - Fix for background JS login