fixed multiple hover bind problem with range selection
refactoring javascripts