moved sources and initialized phonegap