add-note support (js part)