Browser alert changed to canvas text