Update sessiontimeout.js

Updated for new process in the refreshOnClick function.