compile Tools.js