Refactored code

refactored step to generate friends into an array in our input
autocomplete dropdown list.
Merge pull request #14 from WhosOutThere/js-shareitinerary

Refactored code