add phonegap device specific js
change to memory store