Refactoring in Mono1.js

Renamed endOfSpansIndex to endMarkerIndex.