format js object config code format