single page application for phonegap