update kiwix.js and fiw some bugs