modify putDom function to freely change DOM's attr and css.

modify putDom function to freely change DOM's attr and css.