Keeps the session alive as long as the browser is open using a simple javascript ping