Reformatting for html5 page