Use === 1 for isVisible check

Fix #653
Merge pull request #657 from bootstraponline/===

Use === 1 for isVisible check