modularized javascript to customencryption.js. organized structure.