NCHK-2897 ePubCheck is detecting invalid named entities in files other t...

...han html and xhtml, in .js files in this case
@apond 
Only run the entity check on xhtml files.  Delete unneeded code as SCRIPT_TYPES was a superset of VALID_TEXT_MEDIA_TYPES.