changed check for and loading of HTMLPurifier
reformatted the file