Refactored code UPDATED

forgot to add files to the prev commit
Merge pull request #15 from WhosOutThere/js-shareitinerary

Refactored code UPDATED