Phonegap array project