js for notice message