use visibility.js from npm