change attribute of html elements from id to name, and modify contants class