fix js loginfinish