create AJAX data updates without writing js - written for Rails