Index.coffee and fixes in KeyRange