Update visibility.js