some fixes for phonegap in localhost