Adds new JavaScript function "js_download"

"js_download" is a JavaScript function used to download data (text
or binary) from the web server.
Changes made according to feedback from Juan and James
Corrects documentation.  Thanks Meatballs1
Land #1763, @wchen-r7's modification to add js_ajax_download