Clean things up to work as a browserified dependency