javascript: pass parameter to setTimerout