alert_log_error and getJSError modified