phonegap correct direction