Javascript: _callback fn definition