Simple Grails calculator using AJAX