passing path to pdf file dynamically via js