Plugin to detect scroll direction