Update main.js

Replace methods setMarker and clearMarker with addLineClass and removeLineClass.