Reworked closer.js to be reusable for any view. Closes #205