cleaning js lib