refactored output dirs / updated cakefile and index.js with new paths