Fix bugs of download JSON (JS: #.click() is not working)