Added marker.replace method. Fixed ranged deletion doesn't work on IE.