cleanup js lib