Update lib.js
make grid look better