Add support for HTML 5 mode