update example to compile

These updates at least get the example to compile (towards #19), but I have no idea how to handle "this" to prevent the runtime "Cannot read property 'refs' of undefined" [error](https://github.com/purescript-contrib/purescript-react/issues/19#issuecomment-51496320).