take a look at kettle.js and the source code of a muxtape URL. you can download the files in the muxtape by grabbing the AWSaccessKeyID and Signature embedded in the HTML source (at the bottom) and building the URL for the source song from S3, e.g. http://muxtape.s3.amazonaws.com/songs/'+hex+'?PLEASE=DO_NOT_...