support function replace for js.

Example
```js 
        fileTypes: {
          html: {
            replace: {
              js: function(filepath) {
                return '<script class=' + classname + ' src=' + filePath + '></script>'
              }
            }
          }
        }
```