creates dist/ and separates code in backend/