HTML5 Image and Audio Processing in JS