fix recursive problem with watching js files