Modifiying to use Rails Javascript handlers