fixed JS scroll bug