Github issue #62

Rebuilt JS to reflect new visibility code.