avoid double-triggering of manual scroll handlers
realign immediately after browser window resizes
package scrolling logic into a jQuery plugin