Could we define this function locally above `var callback = function() ....` then pass callback.

Also, can we fold the function into the options and clean up the indentation so they become

```
Blockly.inject(document.getElementById('blockly'), {
  path: '../../',
  readOnly: true,
  rtl: rtl,
  scrollbars: false,
  callback: callback
});