compiled version for phonegap