Added Segment Initilize and included js in index page