now works with new psycnet option-to-buy pages that replaced the old DOI landing pages
slight refactoring and implementing jslint suggestions
more refactoring and adding comments
moved page updates to callback to remove timeout
bumped version number since things are now renamed and no longer require a timeout and added more comments