New Contract JS fix