fix build and phonegap stuff
fix phonegap stuff
hmm
cleanup