[JS] Add code comments