webapp: add setTimeout,clearTimeout, fix jshint error