add javascript ping to keep session alive