moved message from JS to template