allowed inefficient subscripting
changed display limit to 9
jshint corrections