"Kobo’s eInk and Desktop platforms have limited support for JavaScript, and do not support interactive JavaScript elements." (
https://github.com/kobolabs/epub-spe...script-support)
I think what you are trying to do is simply not supported, especially if you call updateTimeText using an interactive element.