Edited lib.js