demonstration of using localStorage in a phoneGap application