Jquery-imageviewer is a project mainly written in JAVASCRIPT and SHELL, it's free.
Image viewer with pan and zoom functionality built as a jQuery plugin