zip.js is an open-source library (BSD license) for zipping and unzipping files.

See here for more info:
http://gildas-lormeau.github.com/zip.js/
