Refactor Javascript modules to produce ZIP files.

Issue #230