fixed session, javascript boolean