Fixed secrets.js not being called on non-index pages