JS: updating the markers and removing unused stuff in export