Support custome adapter to adapt js to match format expected