This type of logic should be outside of `imolecule.js`, as it requires specific bindings to the outside world. Move this to `index.html`, and simplify with something like

```javascript
$('.camera-type', '.boundary-type').toggle(imolecule.current.hasOwnProperty("periodic_connections"));
```