mend

Browserifiable.