update a js sentence to use the new showAlert function