fix bugs in index.html and technode.js