fix some remaining js-errors