Added support for JavaScript session keep-alive.