Merging parts of the html5 official backend