switch plugins def to phonegap namespace