fix js quality issues