added JS functionality tot he intake logs section