PhoneGap Legends upload