an error message management plugin written in pure JavaScript