Improved brat formatting script to remove all text in <fig>- and <title>-tags