add support to phonegap bulid (experimental)