Ithink you just forgot the { } for the last function:
function getSerialOverride() {
xdl_read_config(
"xdl_serialports_onboard_override",
function(response){processSerialOverrideResponse(response);},
function(xhr, status, error){}
);
}
solved Uncaught SyntaxError: Unexpected token ) [closed]