replace jQuery to $ for elastic call