Coding error, cannot figure out how to do this

I am working on a group project with some friends, and I am the main coder of the group, so I am getting the most of the more difficult coding, but I cannot figure out how to make this work, when you click the crystal the camera is supposed to rotate smoothly 90 degrees to the right but there is an error with the script, the message says it is working, but the camera is not rotating, can anyone help me with this I have only been doing PlayCanvas for 3-5 months now and the API is very confusing me with the app.fire

script for rotation of the camera: PlayCanvas | HTML5 Game Engine

script for clicking the crystal: PlayCanvas | HTML5 Game Engine

link to project: PlayCanvas | HTML5 Game Engine