Output notifications via JavaScript