diff --git a/client/sagas/execute-challenge-saga.js b/client/sagas/execute-challenge-saga.js
index b56b2befa8..247502a910 100644
--- a/client/sagas/execute-challenge-saga.js
+++ b/client/sagas/execute-challenge-saga.js
@@ -79,7 +79,7 @@ function cacheLink({ link } = {}, crossDomain = true) {
const htmlCatch = '\n';
-const jsCatch = '\n;/*fcc*/';
+const jsCatch = '\n;/*fcc*/\n';
export default function executeChallengeSaga(action$, getState) {
const frameRunner$ = cacheScript(
@@ -103,14 +103,19 @@ export default function executeChallengeSaga(action$, getState) {
// createbuild
.flatMap(file$ => file$.reduce((build, file) => {
let finalFile;
+ const finalContents = [
+ file.head,
+ file.contents,
+ file.tail
+ ];
if (file.ext === 'js') {
finalFile = setExt('html', updateContents(
- ``,
+ ``,
file
));
} else if (file.ext === 'css') {
finalFile = setExt('html', updateContents(
- ``,
+ ``,
file
));
} else {