changes to get ngCordova to work