Remove surrounding html and body tags from plugins and fix file error.