setTimeout() & setInterval()

setTimeout("move(" + pos + ")", 1000);

The first param is function name and this must be a "string". The second param is millisecond

Reference: http://blog.longwin.com.tw/2011/12/javascript-settimeout-args-2011/

Correct Usage:

setTimeout(function(){alert("Hello")}, 3000);
setInterval(function(){alert("Hello")}, 3000);