why AJAX for this? Could also be done using @myVar from inside the controller