js mod for `row`