Updated code to include tools.js 2014-11-14 By MACZ