Updates to support mobile+phonegap