add tools.js with usefull functions