TypeError: $w(...)[data.command] is not a function

I hope thanks