Updating index.coffee to 0.4 spec