question about return;

From a very brief look at your code your use of return in the function actionTime() seems to be correct.

...R