JavaScript complete all