refactored code, now templates generates all folders (css, js, etc.)