Report errors when executing JavaScript
Rename resource error to scriptExecution to disambiguate between script file load errors. Add a human readable message for all errors.