MTA lab - Javascript version

I didn't work on the part to allow the users to input their trip details.
I tried to refactor my code but I'm not sure it's the best way I could have written it.