update lib/reverse.js