refactor a bit. scroll jquery