Initial copy from HTML5 backend & basic functionality