fix js bugs
again