start of js script for pdb downloader