Replacing js mimetype

Replacing js mimetype on error.php?mode=js "from text/plain" to "application/javascript" to prevent issues with some proxy configurations and allowing deflate compression by type in apache.conf.