old_contents: $('document').ready(function() {
  	require(['composer', 'composer/controls'], function(composer, controls) {
  		composer.addButton('fa fa-code', function(textarea, selectionStart, selectionEnd) {
  			if(selectionStart === selectionEnd){
  				controls.insertIntoTextarea(textarea, '```\nInsert Code Here\n```');
  				controls.updateTextareaSelection(textarea, selectionStart + 4);
  			} else {
  				controls.wrapSelectionInTextareaWith(textarea, '```\n','\n```');
  				controls.updateTextareaSelection(textarea, selectionStart + 4, selectionEnd);
  			}
  		});
  		composer.addButton('fa fa-strikethrough', function(textarea, selectionStart, selectionEnd) {
  			if(selectionStart === selectionEnd){
  				controls.insertIntoTextarea(textarea, '~~Insert Text Here~~');
  				controls.updateTextareaSelection(textarea, selectionStart + 2);
  			} else {
  				controls.wrapSelectionInTextareaWith(textarea, '~~','~~');
  				controls.updateTextareaSelection(textarea, selectionStart + 2, selectionEnd);
  			}
  		});
  	});
  });
  
new_contents: $('document').ready(function() {
  	require(['composer', 'composer/controls'], function(composer, controls) {
  		composer.addButton('fa fa-code', function(textarea, selectionStart, selectionEnd) {
  			if(selectionStart === selectionEnd){
  				controls.insertIntoTextarea(textarea, '```\nInsert Code Here\n```');
  				controls.updateTextareaSelection(textarea, selectionStart + 4, selectionEnd + 21);
  			} else {
  				controls.wrapSelectionInTextareaWith(textarea, '```\n','\n```\n');
  				controls.updateTextareaSelection(textarea, selectionStart + 4, selectionEnd + 4);
  			}
  		});
  		composer.addButton('fa fa-strikethrough', function(textarea, selectionStart, selectionEnd) {
  			if(selectionStart === selectionEnd){
  				controls.insertIntoTextarea(textarea, '~~Insert Text Here~~');
  				controls.updateTextareaSelection(textarea, selectionStart + 2, selectionEnd + 18);
  			} else {
  				controls.wrapSelectionInTextareaWith(textarea, '~~','~~');
  				controls.updateTextareaSelection(textarea, selectionStart + 2, selectionEnd + 2);
  			}
  		});
  	});
  });
  
subject: Update buttons.js