Add command-line arguments to index.js.

index.js, test/index.js
  -Define a simple `handleUserInput()` to handle command-line
  arguments.