Newest version of dataextraction script in javascript