Make callable in JS