improved html compiler