moved some js code from cz.htm to common.js
Merge pull request #37 from alex-zen/master

Refactored js code from cz.htm to common.js