updated the js ids to classes so that the /api/new functionality would work