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

loader_type_js: add ability to specify error handler #672