add tool.js to adapter different broswer