watches the given directory, subdirectories and files for events (nodejs)