added uglify to watch function as well