store messages in js, not html5