How to use cookie in java script : The CodeGain