Fix a few broken API URLs in JS, refs D252