refactoring to elegant code
Merge branch 'master' of https://github.com/jittagornp/index-search-javascript.git