clean up javascript libraries