Smooth scroll; handle chrome bug and refactor.