support function replace for js.

Example
```js 
        fileTypes: {
          html: {
            replace: {
              js: function(filepath) {
                return '<script class=' + classname + ' src=' + filePath + '></script>'
              }
            }
          }
        }
```
Merge pull request #59 from hysios/master

support function replace for js.