Fix positioning bug when html is minified

Make doctype regex less greedy, otherwise it may inject in an illegal place.