detecting html and js in files