Remove code redundancy, HTML5