A javascript editor for pdf report generation