Create and download a file in javascript

By Anatoly Mironov