update library js