Syntax error on line 16: unpaired '{' .
        if (location == start) {
