Opted to use .on() with the 'click' listener instead of .onclick() as it is more future-friendly.
Opted to use .on() with the 'keydown' listener instead of .keydown() as it is more future-friendly.
Opted to use .on() with the 'scroll' listener instead of .scroll() as it is more future-friendly.
Added supporting files to allow for publishing on http://plugins.jquery.com/
Added commenting, general cleanup. Made methods out of some execution logic.
Corrected var in doScroll method.