Fix js adapter call