[javascript] Execute script after specific delay using JavaScript