Create js files if createJSFiles is true (fixes #9)