Repository to storage phoneGap app