A peer to peer sharing framework for phonegap