Add the remove and setAttribute methods ( Feature request )

Hi,

Original solution proposed by bigmax ( http://bit.ly/11GyNAB )

Cheers