Update index.coffee

Otherwise I only got "undefined" & NaN