integrated ot back into js