JS-compile Check

When in debug mode = 0, before changing js directory to js-compiled, check if the files exists.