Minor changes and added commented out console.log to illustrate what's going on with word-reverse