Added the missing 'function' keyword.

I'm coding too much coffeescript.