controller.js file.

The controller java script file is calculate the two values.