IE7 fix. remove last comma in the object