Pdf builder from html with js support