Adds offers, fix js error