Update sessiontimeout.js

Changed as per @nschonni comments. Fixed jshint.com errors.