Various fixes to link.js, SDK is now working.