Added jquery way of doing things