js lib up, cleanup