Update library.js

With checkbox added