fix js object syntax