cleanup js cont.