             # Concatenate contents into one file
             content = ( node.content for node in chain ).join '\n\n'
 
-            merged = output.replace( REGEX_FILENAME, '' ) + '.coffee'
+            merged = output.replace( REGEX_FILENAME, '' ) + '.' + FILETYPE
             writtenContent = grunt.file.write merged, content
 
             throw 'Error: failed to write file' if not writtenContent
+
+            if jsMode
+                grunt.log.ok("Concatenated #{main} and it's dependency chain into: #{output}")
 
             if doCompile
                 done = task.async();

        opts = options.opts || '--lint'
        doCompile = options.compile || true

        task = this;
        files = traverse source


                return
            callback null, stdout

    grunt.registerTask 'percolator', 'Concatenate script files ordered by imports', ->
        options = grunt.config(this.name) || {}
        source = options.source || '.'
        output = options.output || 'scripts.min.js'
