Hmm first guess is you need to create an instance of your jstools "class" with new.
var JsTools = require('jstools');
var jt = new JsTools();
setTimeout(function() {
jt.setTimeByUrl('http://www.espruino.com', 1, console.log);
}, 1000);
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hmm first guess is you need to create an instance of your jstools "class" with new.
Not tested... but should work :)