added session suppor using jquery cookie