modified a little more things, replace htmlentities with _.escape, make errorView delete an element with a specified id before rendering