More efficient DOM operation in filter component. Closes #67