Refactor scripts.js: split it into 3 files: bundle-vendor.js, bundle-app.js, bundle-templates.js