Ajax word update on RoR