Issue 6530: 	JavaScript filter doesn't work for scripts with incorrect MIME type