Change text box so that the entered text is evaluated.

Also added simple log print statements in controller.
Add javascript handler for eval button.