Made the html compiler more flexible