Fix js-core and messenger dependencies