add setTag method to element