Fixed some defects in the Session Variable tranfers from PHP to JavaScript.