Including view adapter in library and watchjs in json adapter