Extent helper in javascript yo!