10.10.2016, 09:24
Use built-in setTimeout, just keep in mind that it's async, so it will not further block execution unlike Lua os.sleep.
Code:
setTimeout(function() {
console.log('hello')
}, 1000); // time in in milliseconds