code: function(str){
  	var lastIndex = Math.max( str.lastIndexOf("/"), str.lastIndexOf(".") );
  	// make sure there is at least a character
  	if(lastIndex > 0){
  		return str.substr(lastIndex+1)
  	}
  	return str;
  }
docs: Helper helpers