better build for phonegap type stuff.