JS changes

cache next image. stop bubbling A link clicks. Removed commented out
code.