Changes suitable to phonegap