 data.forEach(function(movie) {     $("#shows").find('tbody')            .append($('<tr>')             .append($('<td>' + movie._id + '</td>'))            .append($('<td>' + movie.total + ' times</td>'))            .append($('<td><button class=\'btn btn-success\' onClick=