Update main.js

Preserve star page formatting even when the page is part of highlighted text