adding ngCordova and createFile method