FIXED js error on animate scroll when there's no update