js: pathselect fixes