fix js for chrome maybe repaint