add a try catch alert to display that the syntax is incorrect.