Automatically update karma.conf.js.

When javascript files are changed, removed or added, the build system will
update karma.conf.js.