show error message and stop processing on js parse failure instead of exception