Add JS API connect example