I managed. Due to the fact that the behavior was translated, Platformer did not work. In my case, I wrote in Russian and turned further to the property.
Globals.marioBehaviorInstance = Globals.marioInstance.behaviors.Платформер;
console.log(Globals.marioBehaviorInstance.isOnFloor);