fix js issue