Update main.js

cleared a space on useTool function