improve speed of search operation

- group/reduce the dom changes to allow browser more easy optimization
fix indentation
Merge pull request #136 from Flyingmana/patch-3

improve speed of search operation