Added JS handlers for controller buttons.