Refactor the javascript
Show/hide person/resource in threejs