Phonegap based Tone Generator