         opts = options.opts || '--lint'
         doCompile = options.compile || true
 
+        
+        # Use JS mode if main script file is .js
+        jsMode = /\.js$/.test main
+
+        if jsMode 
+            doCompile = false
+            FILETYPE = 'js'
+            REGEX_IS_FILETYPE = /\.js$/
+            REGEX_IS_NOT_FILETYPE = /\.(?!js)/
+            REGEX_IMPORT = /\/\/\s?import\s+?([\w\.\-\/\*]+)/g
+
+
         task = this;
         files = traverse source
 

            file = "#{path}/#{file}"
            stat = fs.statSync file

            if stat.isFile() and /\.coffee$/.test file then result.push file
            else if stat.isDirectory() then traverse file, result

        result

    --------------------------------------------------
    ###

    FILETYPE = 'coffee'
    REGEX_IS_FILETYPE = /\.coffee$/
    REGEX_IS_NOT_FILETYPE = /\.(?!coffee)/
    REGEX_FILENAME = /\.\w+$/i
    REGEX_IMPORT = /#\s?import\s+?([\w\.\-\/\*]+)/g

