var count = document.getElementById("count");
var canvas = document.getElementById("canvas");
var dc = canvas.getContext("2d");

var ms = new Array();

var gen_color = function(){
  return "rgb(" +
    parseInt(Math.random()*255) + "," +
    parseInt(Math.random()*255) + "," +
    parseInt(Math.random()*255) + ")";
}
var on_click = function(){
  for(i=0;i<count.value;i++){
    obj = {
      x : 240, y : 440,
      sx : Math.random() * 10 - 5, sy : Math.random() * 10 - 5,
      alpha : 255,
      size : parseInt(Math.random() * 20 + 20),
      color : gen_color()
    }
    ms.push( obj );
  }
}

setInterval( function(){
  dc.clearRect(0,0,1280,960);
  dc.globalCompositeOperation = "darker";
  
  for( var i in ms ){
    var obj = ms[i];
    
    dc.font = obj.size + "px Arial";
    dc.globalAlpha = obj.alpha / 255;
    dc.fillStyle = obj.color;
    dc.fillText( "민수천재야", obj.x,obj.y );
    
    obj.x += obj.sx;
    obj.y += obj.sy;
    obj.alpha -= 2.5;
    
    if( obj.alpha == 0 ){
      ms.splice( i, 1 );
    }
  }

  dc.globalAlpha = 1;
  dc.globalCompositeOperation = "darker";
  
  dc.fillStyle = "rgb(128,200,64)";
  dc.beginPath();
    dc.arc(1000,900,600,0,2*Math.PI);
  dc.closePath();
  dc.fill();
  
  dc.globalCompositeOperation = "source-in";
  
  dc.fillStyle = "rgb(87,127,180)";
  dc.beginPath();
    dc.arc(-200,-200,700,0,2*Math.PI);
  dc.closePath();
  dc.fill();
}, 33 );

var count = document.getElementById("count");
var canvas = document.getElementById("canvas");
var dc = canvas.getContext("2d");

var ms = new Array();

var gen_color = function(){
  return "rgb(" +
    parseInt(Math.random()*255) + "," +
    parseInt(Math.random()*255) + "," +
    parseInt(Math.random()*255) + ")";
}
var on_click = function(){
  for(i=0;i<count.value;i++){
    obj = {
      x : 240, y : 440,
      sx : Math.random() * 10 - 5, sy : Math.random() * 10 - 5,
      alpha : 255,
      size : parseInt(Math.random() * 20 + 20),
      color : gen_color()
    }
    ms.push( obj );
  }
}

setInterval( function(){
  dc.clearRect(0,0,1280,960);
  dc.globalCompositeOperation = "copy darker";
  
  for( var i in ms ){
    var obj = ms[i];
    
    dc.font = obj.size + "px Arial";
    dc.globalAlpha = obj.alpha / 255;
    dc.fillStyle = obj.color;
    dc.fillText( "민수천재야", obj.x,obj.y );
    
    obj.x += obj.sx;
    obj.y += obj.sy;
    obj.alpha -= 2.5;
    
    if( obj.alpha == 0 ){
      ms.splice( i, 1 );
    }
  }

  dc.globalAlpha = 1;
  dc.globalCompositeOperation = "copy darker";
  
  dc.fillStyle = "rgb(128,200,64)";
  dc.beginPath();
    dc.arc(1000,900,600,0,2*Math.PI);
  dc.closePath();
  dc.fill();
  
  dc.globalCompositeOperation = "source-in";
  
  dc.fillStyle = "rgb(87,127,180)";
  dc.beginPath();
    dc.arc(-200,-200,700,0,2*Math.PI);
  dc.closePath();
  dc.fill();
}, 33 );

Update minsoo.js