I would prefer if the ruby method and the javascript function had similar names.  Maybe this should be `js_ajax_download`