Updated lib and main.js