Changing mimetype reported by errors.php?mode=js to avoi proxy problems.

Changing the js mimetype to text/javascript to avoid problems with some proxy configurations.