changes in function.js. Added sessionStorage
changes in function.js. Added sessionStorage