Update sessiontimeout.js

Fix for JS error that was breaking mega menus (and possibly other things).
Merge pull request #3035 from chyne/patch-1

Fix for JS error that was breaking mega menus (and possibly other things).