Handle back press in phonegap app