Rails UJS events handling example using form