fixing syntax errors in browser