update controller and add CharacterController. New main.js