Output string to console instead of alert