media capture app with ngCordova