cleanup for nojs