Add comments in toggle_visibility.js