Minor code cleanup.
Stop using window.document.anchors and window.document.images.

Adds jquery 1.10.1