             compiled_style = data
         return compiled_style
 
+    compileScriptLibraries = (settings) ->
+        script_libs = ''
+        for lib in settings.script_libraries
+            script_libs += "<script src='#{ lib }'></script>"
+        return script_libs
+
+    compileStyleLibraries = (settings) ->
+        style_libs = ''
+        for lib in settings.style_libraries
+            style_libs += "<link rel='stylesheet' href='#{ lib }' type='text/css'>"
+        return style_libs
+
     compositePage = (compiled) ->
         page = """
         <!doctype html>
         <html>
         <head>
             <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
-            <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.1/underscore-min.js"></script>
-            <script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.string/2.3.0/underscore.string.min.js"></script>
-            <script src="https://cdnjs.cloudflare.com/ajax/libs/coffee-script/1.3.3/coffee-script.min.js"></script>
-            <script src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.2/backbone-min.js"></script>
-            <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
-            <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.9.0/jquery-ui.min.js"></script>
-            <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.2/jquery.ui.touch-punch.min.js"></script>
-            <script src="https://raw.github.com/Marak/Faker.js/master/Faker.js"></script>
-            <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9/themes/base/jquery.ui.all.css">
+            #{ compiled.script_libraries }
+            #{ compiled.style_libraries }
             <style>
                 #{ compiled.style }
             </style>

        'script.coffee' : 'console.log "loaded"\n\n\n'
        'markup.jade'   : 'h1 Hello, world!\n\n\n'
        'style.styl'    : 'h1\n    font-weight 300\n    font-family Helvetica\n\n\n'
        'settings.json' : '{}'
        'notes.md'      : "# #{ project_name }\n\n\n"

    project_path = "#{ CWD }/#{ project_name }"



    sys.puts("Working on #{ project_name }\n#{ project_path }")

    loadSettings = (settings_source_file) ->
        settings_raw = fs.readFileSync(settings_source_file)
        settings = JSON.parse(settings_raw)
        # TODO: Validate settings
        if settings.version isnt proto_version
            quitWithMsg("Error: #{ project_name }'s version (#{ settings.version }) does not match proto's (#{ proto_version })")
        return settings

    compileScriptFile = (script_source_file) ->
        stamp('Compiling script')

