Update lib.js

Fixing issue #168