only process js files

The source directory may contain other filetype files, for example css. We should only process the js content.