Fix js for updated markup