javascript ajax html integration