Update library.js