Added JQuery-like APIs such as attr().