use cssText instead of trying to clone style property of element