Session Timeout Implementation in JavaScript - particularly useful for mobile and smart (hybrid) clients that have a session management implementation at the server side