extend generic object with sugarjs