getting phonegap/persistence/node/jqm to play nicely together