All Jasmine tests are passing
Extracted private method name_from_idx