updated the javascript code to return audio blob. added funciton to convert