karma auto watch and remove unnecessary js vendors from javascript