js, ng: onComplete callback changes