JavaScript for insertion, updates, aggregations, etc/