New loader and Phone Gap fixes