fixed javascript error with display_errors_js function