Fix snippets with 10 or more indices

![bug](https://cloud.githubusercontent.com/assets/5219415/3098707/e7b4dd0c-e5ef-11e3-9882-daab3e44dcc3.gif)

Starting with index 10 it went really buggy (as you can see). The way it should look (and does now):

![coffeedocs](https://cloud.githubusercontent.com/assets/5219415/3098726/31008a56-e5f0-11e3-97e8-0c0a350aff70.gif)