finish javascript unittest demo