phonegap debug stuff