fixed js scrolling bug