Update window-measuring code.
Update comments.
Change all uses of $() to jQuery standard
Check result of $() properly.
Change all inclusions of prototype to jquery.
Remove "times"