refactored mbta.js, now it does not prompt or alert the user for input