An HTML/JS encapsulation overhead calculator