Moved the check if the marker was ready over to bus.js from map.js