add an async compenent of JS