Makeing a cross platform app with phonegap