fix r.js extprocs to pass back some errors rather than crashing
renaming errmsg to err_out in js_job.cc