phonegap upload photo js