It looks like it's only available in the Atlas service. Please correct me if I'm wrong.
Writing analytic queries in JS is painful.