Fixed function definition in item.coffee