Update library.js

code formatting;