Porting to jQuery - Part -1