Fix the cookie message js

@andrewgarner @aduggin