Tidied up javascript libraries