fix syntax errors that cause cross-browser failures.