        for (var i = 0; i < v1.length; i++) {
            var delta = v2[i] - v1[i];
            sum += delta * delta;
        }
        return Math.sqrt(sum);
    }

    function weighted_euclidean_distance(v1, v2) {
        var sum = 0;

        for (var i = 0; i < v1.length; i++) {
            var delta = v2[i] - v1[i];
            sum += delta * delta;
        }
        return Math.sqrt(sum);
    }

    function redrawTiles() {
        _.each(jukeboxData.tiles, function (tile) {
            var newWidth