offset is now only considered when scrolling down. also:

* added test-specific jshintrc
* rewrote tests to reflect new logic