Added global session variable in javascript.