Added index and some coffeescript