revised transit.js