VisibilityToggler UI component refactor

- add JS tests
- test fixture is reference for sample markup instead of comments
- trigger can be inside or outside of target