Trying to fix phonegap - angular problems