Question about FlyCamera.js

Hi, i tried to edit this flycamera script to move forward and turn when arMarker entity was active. but I have not succeeded. can someone see the error? Thanks in advance :grinning::grinning:

var FlyCamera = pc.createScript('flyCamera');
FlyCamera.attributes.add('speed', {type: 'number',default: 10});

FlyCamera.prototype.initialize = function () {

    var eulers = this.entity.getLocalEulerAngles();
    this.ex = eulers.x;  this.ey = eulers.y;
};
FlyCamera.prototype.update = function (dt) {
   // this.entity.setLocalEulerAngles(this.ex, this.ey, 0);

    var app = this.app;  var speed = this.speed;

   this.entity.transaleLocal(0, 0, -speed*dt);
   
 {
        this.entity.rotate(0, 10*dt, 0);
    }};