Move PDF download tracking into jQuery script