loader_type_js: add ability to specify error handler #672
Merge pull request #693 from hcodes/issues/672@v3

loader_type_js: add ability to specify error handler #672