added javascript to enable smooth scrolling from pageinations