integration index javascript