Added file path to error reporting (in js)