Changed lift function in js