[client] use 'getTargetAppName' prototype function

They are duplicate defined, so I remove function which is not prototype.