Fix some jquery loading issues and add smooth scrolling