bugfix in error_report.js

Signed-off-by: Umair Khan <omerjerk@gmail.com>