Fix JavaScript syntax error