This is not good : 

- `w0` and `h0` are not reliable
- html code might be changed in the future, and manipulating it here is hard to maintain

maybe the frames can be generated in the code, with actual widths and heights