enable html5mode and add mimetype