fixes for js-sources