Always use braces with `if` statements, see https://github.com/mozilla/pdf.js/wiki/Style-Guide.