Fix the error message not showing, added the js variable to the globals.html

Reviewer: Tiff Go

Issue: None