adding tool.js