JavaScript data ActiveRecord