javascript for extracting data of be papers (not working)