JavaScript example for grove moisture