removed language attribute in display_errors method returned javascript