changed the dataset. method for getting ids to getAttributes, dataset method doesn't work with IE