removed unnecessary alert inside the javascript library

GCP-8433

Reviewer: Glenn (post-commit)