In-memory data store can now handle JavaScript functions as queries