rearrange phonegap