Initial HTML5 backup solution

May be a bit slower than possible. Optimizations necessary.