Refactored expiretime acknowledgements

Better JS functions

refs #4194

Signed-off-by: Markus Frosch <markus@lazyfrosch.de>