JS Library cleanup