code: function () {
  			var max = -1;
  
  			$('div[id^="mediumInsert-"]').each(function () {
  				var id = parseInt($(this).attr('id').split('-')[1], 10);
  				if (id > max) {
  					max = id;
  				}
  			});
  
  			return max;
  		}
docs: Return max id in #mediumInsert-*
  
  @return {int} max (Max number, -1 if no placeholders exist)