Update index.js

Fix for markSeen