_function() has a local parameter named "target" that hides
your instance member "target". You'll either need to change the
parameter name OR use "this.target" to set the instance member.
Also, be careful attempting side-effects like this. It can make the
code much more difficult to maintain.