adds ifvisible.js detection