Add addJS method to PdfFileWriter