Next best offer JS updated with timeout