Here is the code.
function downloadCL(){ document.addEventListener(\"deviceready\", init, false); //The directory to store data var store; var asset