Tidied up Javascript libraries