Java rewrite, Cordova 3