Foreground Camera for Apache Phonegap