Fixes #10 by adding a hook for when the indexes change.

See this jsbin for an example of this working: http://jsbin.com/tesah/6/edit