Update structure as required by PhoneGap build