add phonegap delay solution