code: function(url) {
  			var index = url ? url.lastIndexOf('/') : -1;
  			return index == -1 ? url : url.substring(0, index + 1);
  		}
docs: Remove the filename from a url, if possible, returning the url describing only the parent 'path'.