[javascript] Setting session variable using javascript