fix: only run JS on extension pages; fix: options init