Corrections after code review. Removing keys js attribute and storing messages directily in sessionStorage