Fixes based on PR comments

- Curly braces after one-line if clauses mandated by the new
  jshint configuration.
- Better position indication on the closing parentheses error