Fixed some minor bugs in libsb. Removed some useless code inside page.js