The JavaScript exception "missing ; before statement" occurs when there is a semicolon (;
) missing somewhere and can't be added by automatic semicolon insertion (ASI). You need to provide a semicolon, so that JavaScript can parse the source code correctly.