The sample javascript controller.