finished visibility.js