Q: How can I set delay for running functions I have javascript for call 2 function for example:
system.library.myscript.function1();
system.library.myscript.function2();

I would like to set delay before run function2 for example 20 seconds. 
Highly appreciated for anything helps.

A: Use setTimeout() function:
setTimeout(function(){
 alert("Hello"); 
}, 3000);

:)
