Added pdf generation js