updated reverse.js to now reverse phrases instead of just strings.