stop JS from running if no pending payments