I have a function that look like this. I want each action to be performed in the order and when i use clearTimeout(action1) the next one begin and overall time is decr