You can probably do that, but based on the docs, I think this will work to make a /media
call (completely untested code):
var path = '/path/to/file';
client.makeUrl(path, { download: true }, function (error, link) {
alert('Got back URL: ' + link.url);
}