Switching phonegap mode off