Fix file name.
Better error reporting in JS callbacks.