Compatible to Apache Cordova 3.3
Added support for prompt method.