function _splitTo (string, target) {
    target.length = 0; // clears the array first.
    var last = 0;
    var i;
    var len = string.length;

    for (i = 0 ; i < len ; i++) {
        if (string[i] === '/') {
            target.push(string.substring(last, i));
            last = i + 1;
        }
    }

    if (i - last > 0) target.push(string.substring(last, i));

    return target;
}
_splitTo is a private method which takes a path and splits it at every '/'
pushing the result into the supplied array. This is a destructive change.

@private
@param {String} string the specified path
@param {Array} target the array to which the result should be written

@return {Array} the target after having been written to