Refactors watch files for Karma