css add margin:0, padding:0 for body and html element;
main.js add geometry object to get accurate width / height
tb.html add code to compatible with attachEvent and addEventListener