returned_data is currently undefined, but links are being logged out to the console. Look into the discrepency and try to troubleshoot