update for percentage upload progress and ngCordova