BUG: Lifecycle code sample contains unexpected ":"

It looks like this sample was converted from using object literal notation to use function expressions, but one of the ":" was missed. I've replaced it with an assignment so that the sample works again.
Merge pull request #5 from MarkBennett/gh-pages

BUG: Lifecycle code sample contains unexpected ":"