Make the startup function in tool.js receive the currenttoolbox and target