improved phonegap-bs